class Token {
  int id;
  String userId;
  String token;
  int expire;

  Token({this.id, this.userId, this.token, this.expire});

  Token.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['userId'];
    token = json['token'];
    expire = json['expire'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['userId'] = this.userId;
    data['token'] = this.token;
    data['expire'] = this.expire;
    return data;
  }
}
